/* $VER: AWebNews.cnfg 1.7 22 Dec 1996 */ /* Play with this script you could regret it ! ... rename and wildcard delete happen ... external comands are enabled See comments at start of news.awebrx for usage. */ /*Show calling parameters at top of page use 'on' or 'off'*/ showcomand='off' options results term='.'||'0d'x newsgroupsfile="newsgroups" ports = show('P') parse var ports dummy 'AWEB.' portnr . address value 'AWEB.' || portnr 'GET ACTIVEPORT' awebhost = result if ~show('L','rexxsupport.library') then if ~addlib('rexxsupport.library',0,-30,0) then exit(20) parse arg addr parse source prog_type result_flag called resolved ext host . last_slash = lastpos('/',called) last_colon = lastpos(':',called) dir_pos = max(last_slash,last_colon) if dir_pos > 0 then current_dir = left(called,dir_pos) else current_dir = '' address value awebhost call readinfo if ft='config' then call writeconfig if ft='del' then call deletegroups call configinfo if many=''then many='10' if bacc=''then bacc='#ffffff' if texc=''then texc='#000000' if spath='' then spath='t:' if bfile='' then bfile='t:AWebNews.batch' address command 'delete T:configawebnews.#?.html >NIL:' fname='T:configawebnews.'time(S)'.html' if open(1,fname,w) then do call writeln(1,'